package com.corpgovernment.travelstandard.dto;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author jhxue
 * @create 2022-05-12-17:59
 */
@Data
public class TrainTransferStandardDTO {

	/**
	 * 自增主键
	 **/
	private Long id;

	/**
	 * 差标归属组织id
	 **/
	private String orgId;

	/**
	 * 差标名称
	 **/
	private String name;

	/**
	 * 车型管控开关价格管控开关（E表示启用，N表示停用）
	 **/
	private String modelSwitch;

	/**
	 * 车型超标管控方式价格超标管控方式（禁止预订F、选择原因C、审批A）
	 **/
	private String modelControlType;

	/**
	 * 价格管控开关（E表示启用，N表示停用）
	 **/
	private String priceSwitch;

	/**
	 * 价格上限
	 **/
	private BigDecimal priceUpperLimit;

	/**
	 * 价格超标管控方式（禁止预订F、选择原因C、审批A）
	 **/
	private String priceControlType;

	/**
	 * 城市管控开关（E表示启用，N表示停用）
	 */
	private String citySwitch;

	/**
	 * 城市超标管控方式（禁止预订F、选择原因C、审批A）
	 */
	private String cityControlType;


	public static TrainTransferStandardDTO create(String orgId,
												  String name,
												  String modelSwitch,
												  String modelControlType,
												  String priceSwitch,
												  BigDecimal priceUpperLimit,
												  String priceControlType,
												  String citySwitch,
												  String cityControlType) {
		TrainTransferStandardDTO airportTransferStandard = new TrainTransferStandardDTO();
		airportTransferStandard.orgId = orgId;
		airportTransferStandard.name = name;
		airportTransferStandard.modelSwitch = modelSwitch;
		airportTransferStandard.modelControlType = modelControlType;
		airportTransferStandard.priceSwitch = priceSwitch;
		airportTransferStandard.priceUpperLimit = priceUpperLimit;
		airportTransferStandard.priceControlType = priceControlType;
		airportTransferStandard.citySwitch = citySwitch;
		airportTransferStandard.cityControlType = cityControlType;
		return airportTransferStandard;
	}

}
